package com.cyh.ebptbatchwar;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication(scanBasePackages = {"com.cyh.ebptbatchwar.**","com.cyh.ebptpubjar.common.**"},exclude = {DataSourceAutoConfiguration.class})
public class EbptbatchWarApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(EbptbatchWarApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(EbptbatchWarApplication.class);
    }
}
